﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using PagedList.Mvc;
using PagedList;

namespace StoreManager.Models
{
    /// <summary>
    /// Erro class contain error message
    /// </summary>
    public class ErrorsInfo
    {
        public ErrorsInfo()
        {
            ErrorCode = "001";
            Msg = "System Error, please contact with administrator via sms@gmail.com";
        }
        public ErrorsInfo(string aCode, string aMsg)
        {
            ErrorCode = aCode;
            Msg = aMsg;
        }
        public string ErrorCode { get; set; }
        public string Msg { get; set; }
    }
    public class ProductSearchView
    {
        public int? Page { get; set; }
        public IPagedList<Product> SearchResults { get; set; }
        public string SearchButton { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class ImportOrderSearchView
    {
        public int? Page { get; set; }
        public IPagedList<ImportOrder> SearchResults { get; set; }
        public string SearchButton { get; set; }
        public string ImportOrderNo { get; set; }
        public string Status { get; set; }
    }
}